(function () {
    remChange();
    window.addEventListener('resize',remChange);
    function remChange() {
        var html = document.querySelector('html');
        var width = html.getBoundingClientRect().width;
        html.style.fontSize = width / 16 +'px';
    };
})();